Update dragdrop.lua

Further clean formatting and fix right clicking: when you open the menu and click away - stop dragging.
Also relocate functions closer to similar functions.