If I'm reading this right, it sounds like you had an Out-of-body experinece. But kind of backwards. Normally in an OOBE you see yourself asleep. In your case it sounds like you normal body got up to pee, while your dreaming body stayed in bed looking at the ceiling.

Very interesting.