Handle window resizing more intelligently

Instead of handling the new frames in windowWillResize, we can
achieve a much more smooth and fluid effect if we handle the
event afterwards.

Also forgot about the titleview and that we need to resize that.