I've had "real" offices. I've worked in open-plan offices. I've had a home office. I've worked from bed.
There are tons of good ways to do it.
Lately I swap between a kitchen table and a chair on my porch. I no longer use multiple screens, I've just gotten really fast at swapping windows on my 15" laptop; I've gotten good at figuring out how wide my terminal window breaks should be and where my browser dev tools should sit.
Surely there are more optimal ways of doing stuff. Odds are that there is a Taylorist approach that would pull more productivity out of me. But much like my typing speed (~50WPM) isn't really the limiting factor in my programming skill, screen real estate isn't a big factor in getting stuff done for me.
But the big thing for me is that, in the end, it's fine for me to switch stuff up on a monthly or quarterly or yearly basis.
I could never have done that when I was in an office. I couldn't take 20 min and play banjo or accordion and come back to my problem with a fresh eye. I couldn't put on my laundry and hang it up while I listen to other folks on the daily stand up. I couldn't start my lunch cooking in the instapot while waiting for a script to finish running.
It would take a hard, hard sell to get me back in an office, not matter how much real and legitimate enjoyment and utility other folks get in an office.