Resize method 4: Using the top corners of a window