how to divide one window into two windows
To divide the window vertically click the upper right corner and drag downward with the mouse.  The direction the mouse moves after you start the click and drag determines which way the window divides.  

Dragging to the right breaks the window horizontally, dragging downward breaks the window vertically.