If you are a beginner, and you want to do something of a high level nature in coding, please pause and do the correct thing by going step by step, try out the simple stuff and then progress further up.
Example do a window, and menus, add buttons and so on.
For the drag and drop and dynamic stuff, even if someone was to give you the sample code, its not going to help you much as its going to be very object orientated in nature.
If you really want the ninja shelf,,, just buy his script and open and see how he did it. Its all in mel anyway.