Question: how to have two windows open on mac side by side?
Answer: Hover your pointer over the full-screen button in the upper-left corner of a window. Or click and hold the button.
Choose ”Tile Window to Left of Screen” or ”Tile Window to Right of Screen” from the menu. ... 
Click a window on the other side of the screen to begin using both windows side by side.