Widgets off screen

Ty for fast reply.
well this is exactly what i have , but doing it this way , i can drag it out of the screen , just cant drop it there .

Isnt there some mysterious function in drag and drop class to limit mouse to screen or something like that ?