To me it sounds like episodes of hyperfocus - what you're doing becomes everything, and the rest of the world fades away. Being pulled out of that feels (to me) almost like a physical jolt, and it is unsettling. And annoying.
I don't know if this would help you - it certainly helped me - but you can get a replacement switch for your garage door that will close it automatically after a defined period (I used 10 minutes) if no one is moving in and out of the garage. I also got a deadbolt that locks itself after 3 minutes. No more forgotten doors and locks.
@ScottSoCal thanks. Closing the door is not a chronic issue; just that time she interrupted at exactly the wrong moment. But it was an example of myriad such things, most of which just annoy me while the interrupter is unaware they just caused me to waste time trying to figure out what the heck I'd been doing
@ScottSoCal ding ding ding!
Not long ago I was doing something and my wife told me with some urgency to do something else. It annoyed me but because of her intensity I changed gears and went to the basement to do what she said. I did it, came upstairs, and started a 3d thing. An hour or so later I caught hell because the garage door was open and the door to the house was unlocked.
She had caught me when I stepped inside to get something, was turning to go back when she flipped a switch.