I think the toll of interruptions has to weighed against the benefit of the interruption. Sometimes sacrificing your time to help someone get unblocked reaps benefits that make the sacrifice worthwhile. It's not just about your time.
Agreed - while interruptions are a problem, a dev who refuses to engage with the wider team is also a problem. It needs some active discussion amongst the team to balance where to draw the lines.
So many people I interact with don't understand the toll of interruptions.