I think you've conflated quality and productivity; you started talking about one then switched to the other. They are related but not the same.
Certain dev tasks require deep flow for good results/quality. Robust refactorings, abstraction design and prototyping. Basically anything where you have to preserve invariants under code transformations. This isn't all dev work, and isn't necessarily frequent either, but when flow state is required it's usually important work that's core to a program's operation, so product quality definitely depends on flow.
If you're working on such a task, an interruption requires a return to that flow state to ensure good quality, and that takes time and will definitely impact productivity.
Other tasks do not require going very deep though and so achieving comparable quality doesn't require much depth in your flow. Interruptions won't affect productivity much in such cases.
My two cents.
Now if you're getting constantly pinged for stupid shit that anyone could Google, then perhaps you should politely confront the person(s) doing so and make your expectations clear rather than declaring a pox on all interruptions.
Wouldn't this be true of just about everyone complaining about such interruptions though? I can't imagine anyone would mind being interrupted if the building were on fire. People just differ on what they consider to be good reasons.
I'm sure there are unreasonable people on all sides, both those asking for unreasonable conditions to interrupt them and those not respecting reasonable conditions for interruptions, but I don't think it's the majority of the people complaining about it. I've been in this situation a few times, and lots of people just don't have good impulse control and so don't even think twice about interrupting you if it's more convenient for them.
Our code quality here has improved significantly around this, and we are shipping faster than ever.
That isn't to say I'm unavailable (or anyone else) its that there is an acceptance that not all things are urgent, and if they are, its warranted to break through any focus periods.
By contrast it sounds like you guys designed your product around maximizing the impact of flow states and minimizing the need for interruption. I bet you have good documentation too. I'm honestly jealous, it would take tens of millions and years of re-writes to do the same here, and our prime customer wouldn't be willing to accept the delay even if we had the funding.
So little is actually urgent, unless you have some business critical infrastructure you have to maintain, but that sounds like a different role entirely.
If the product quality depends on you maintaining a flow state for extended periods, then you're either working in a research lab or it's a poorly designed product.
I say this as a dev who also gets annoyed when my deep focus is interrupted, but so long as the interruption is actually warranted (and with my company's culture it usually is) I swallow my annoyance, task-switch and get the job done anyway. I'm already earning a higher salary than than most people in the world with good benefits and flexible hours. I can be mildly annoyed at work sometimes if it helps get the job done.