How to dynamically populate the tree view dropdown menu?

Populate the link tree view dropdown menu

NormalHTMLPreview
 
 Resize
Load

Add new tree view dropdown menu

NormalHTMLPreview
 
 Resize
Load