Drag a window up to the menubar to maximize it, or drag a window to the side to resize it to the corresponding screen half.

Demo