I have a drop and drop, which works fine, but i don't want it to go outside the window.

How can I do it?

Thanks