Custom window resizing.