This is exactly how I spent my youth, and I try to use how I felt those moments as a comparison for how engaged I with the real world at any point. If I find myself too decoupled from real life and too deep into work, I will extract myself by leaving the house without any devices or any place to be. I love those moments. I no longer carry a smartphone with me, just a standalone smartwatch for incoming calls, so that's actually made those moments to be any moment I'm not at my desk.
It's why travel, even local travel, is so important to me. I can live moment to moment, experiencing life in simple visceral terms. How do I feel right now, and what does that make me want to do? Well, let's do that then.