Limiting a window drag movement in Vaadin

I have a Vaadin application which contains a header and a menu bar as well. The menu bar provides options where some of which opens up a new Window much similar to a desktop MIDI application. However the window can be moved above the menu and over the header. Does anyone know how it is possible hanksTto limit the view movement to within the content area. This content area is currently a VerticalLayout.

Thanks