Title is self explanatory.

I'm looking to make a dragging menu but confused on the math to make it so where ever the user clicks is where it drags from. Currently it moves the mouse to the corner of the menu being dragged.