You can refer this link for drag and drop widget for mendix.
https://github.com/ahwelgemoed/drag-and-drop-mendix-widget