Implement manual window resizing.