Here we show how one can manipulate the window moving and resizing. In this sample we limit two windows to the X- and Y-axis.
With this possibilities you can develop a lot of different behaviors by yourself. Just see the sourcecode (samples/limit/limit.js) to get your stating point.