I finished reading "Deep Work" recently (book mentioned in the article) and have started using this time-blocking strategy to great effect.
The book also suggests scheduling time specifically for distractions, the idea being to turn the situation on its head so you have something to look forward to rather than something to avoid.