Good leaders do their best to prevent distractions and avoid interruptions.

...

But no matter how much planning goes into eliminating distractions and arranging the physical work environment to enhance focus, people (and pets) interrupt the flow.

...

Once interrupted, it often makes the most sense to give the source of the disturbance your full attention. If it’s going to take a few minutes to redeploy your focus anyway, why not achieve the equally important goal of doing what leaders are meant to do: focus on the problems and issues of others.

Admired Field Notes

This really makes a lot of sense even though our brains will actively try to pull us back into whatever we were doing before. By going back to what you were working on you have to go through the pain of another context switch whilst the interruption presumably remains unresolved.