I'm not advocating for an open office or a closed office but I do appreciate something balanced. People around me are always collaborating and discussing a great number of things which really makes me lose my focus. I usually come in early when it's really quiet and no one's in yet to get things done. After that, headphones on but even then, I miss the sound of silence rather than drowning out noise with more noise.
That was actually going to be my response. Speaking as the person typically on the other end of the "hey, quick question" it's crazy-distracting and it typically takes me 5-10 minutes to get back to whatever I was coding. It's demotivating that my time in the office is split between meetings and interruptions (direct or just general office roar), as well as why I'm currently receptive to interesting job offers.
Now, as a self-employed individual I rent a seat in a shared open office to maintain that focus. It's far too easy to turn on the TV or play a video game or linger on the phone with a friend when I'm working from home. In a different setting -- with people around: all focused on work -- it's much easier to maintain a focus on work and getting done what's important.