Simply pass the CSS class names for the various components needed to add drag-drop functionality to your portal. Positions can be saved by also passing the url to send user preferences to.
This class based on the Prototype JavaScript framework (http://prototypejs.org/) and the script.aculo.us library (http://script.aculo.us/)