I can definitely attest to showering and walking being the best idea facilitators. In fact, I believe the same can be true for coding. I've solved a lot of coding problems in my head while hiking.
I bet there's a connection there to the relationship between physical activity and mental capability throughout the aging process.
One of my favorite quotes on idea generation is from Madmen (tv series): "Just think about it deeply. Then forget it, and an idea will jump up in your face."
I have a waterproof notebook for situations just like these, though it got mostly used to sketch out public talks - during showers I would often think about the points I wanted to make, and suddenly, new insights would dawn on me.
Not nearly as cool, but sometimes a tricky client problem that's been bothering me seems to solve itself in my head, and I try to frantically diagram it or write it in the condensation on the inside of the shower door to make sure it checks out and to help me remember it. It's happened several times.
I don't think it has anything to do with screens per se - it's about being alone and free to think, while not being able to do anything else. Other people are as much, if not more, distracting than screens - hence the time spent in shower or on the toilet is so frequently mentioned as the source of valuable insights.