I remember first hearing about this from the book Deep Work: https://en.wikipedia.org/wiki/Attention_restoration_theory