Add a window-resized hook which is fired when the window is actually