Try this:
First, put this near the start of the code for the icon:
Code:
import "Deusdictum.UI";
Then add this somewhere in the setup for the icon:
Code:
self.DragBar = Deusdictum.UI.DragBar( self, "{name of icon}" );
I think that is all there is to it, let me know how it works.