I am a dev, and I enjoy the odd distraction. Sometimes. But not when I'm in the zone.
It's not about being a dev or not being a dev. It's about whether the tasks you are doing require you to hold a lot of state in your head. Sometimes you can't write everything down. And when someone calls you in for a quick chat about TPS reports, all that state is thrown out and has to be rebuilt from scratch.
If I'm writing a short script where I can find my place again just by reading the screen, it's not a problem. Me mentally refactoring code that goes across dozens of files and isn't documented anywhere? Please, I'll need some focus time. As a dev I'm not always in flow state, but when I am, I prefer if you let me finish what I'm doing.