MacOS / iMac - one continuous display from 2 monitors

A work, I use Windows and have two monitors. I can take a browser window or even a spreadsheet and stretch the entire window over the two monitors.

Is there a way to do this with Mac OS? It only seems to allow me to see an app window only on one screen.

Deselecting this option should do the trick.