IMO blocking non-interrupted time is one of the most important parts of software engineering productivity.
By non-interrupted I mean by others, yourself, or social media.
Building software requires you to create, hold, navigate, and re-org growing mental models in your mind. Context switching of any kind requires you to dump those mental models from your brain in order to focus on the new context.
Re-constructing the mental models takes time and you are not guaranteed to pick up the same pathway you were previously on.