You can use mouse clicks on window mode lines to select and manipulate windows.
Some areas of the mode line, such as the buffer name, and major and minor mode names, have their own special mouse bindings. These areas are highlighted when you hold the mouse over them, and information about the special bindings will be displayed (see Tooltips). This section’s commands do not apply in those areas.
mouse-1 on a mode line selects the window it belongs to. By dragging mouse-1 on the mode line, you can move it, thus changing the height of the windows above and below. Changing heights with the mouse in this way never deletes windows, it just refuses to make any window smaller than the minimum height.
mouse-2 on a mode line expands that window to fill its frame.
mouse-3 on a mode line deletes the window it belongs to. If the frame has only one window, it does nothing.
C-mouse-2 on a mode line splits that window, producing two side-by-side windows with the boundary running through the click position (see Split Window).
Furthermore, by clicking and dragging mouse-1 on the divider between two side-by-side mode lines, you can move the vertical boundary to the left or right.
Note that resizing windows is affected by the value of window-resize-pixelwise, see Split Window.