To add upon this idea, how would I keep the panel from being dragged out of a specific bounding box. ie. if windowed, I don't want to drag it off screen or up too high over my static menu at the top.
I've tried adding " && sender.pos_x <= 600" to the while mouse_left loop, but if I drag really fast it will go past the bounding box and have to snap back... doesn't look good, I need it to be smooth and just stop at the edge of the predefined area.