How to add Palette in Dynamic port sample

Hi im new to Gojs,Im trying to insert palette in Dynamic Port example,my question is as show in sample( if we double click we will get a copy of node,rather than that i want to drag the nodes with the help of palette,im confused can any one help me out?

Thank u.

Add a DIV to the HTML for the Palette.
Create the Palette in JavaScript code, just like creating the main Diagram.
Typically the Palette shares the templates with the main Diagram, but they could be completely different, usually simpler.
You might also want to customize the GridLayout that is the Palette.layout.
Then initialize the Palette.model to hold the node data that you want to show as items that the user can drag to the main Diagram.
Have you read the Introduction page: Palette?