Add support for pining a window to the edge of the screen if the resize would cause the window to go off screen etc.