Couldn't agree more to this. Even having a small tea break or watching a youtube video for distraction helps a lot. I think its something about perspectives, we cannot focus fully on a given task and also look at it from a wider perspective or different angles at the same time, so taking a break and coming back gets focus on these angles which were earlier ignored. Kind of like "boxed thinking" which self help articles always talk about.