Sounds like you were quite the astral projector as a child! My experiences involve moving through realms via rooftops and ceilings too actually. There are really a lot of layers involved in these transitions, aren't there? Like how you had the realization you're dreaming, and then you move out of it, to your room, which is another kind of in-between realm.
If you were uncomfortable with the knowledge you were dreaming (actually, I can see how this could be uncomfortable for a kid-because no one talks about it in daily life, so it seems like it's not supposed to happen and like the world turned upside down) then I would guess that the "WHAT ARE YOU DOING" was your minds own mechanism for waking yourself up -especially if you were back in your room and can here some people talking. Maybe you really wanted to wake up at that point? Also, people who are very close, like brothers and sisters or significant others, can pick up on the each other's sleep transitions and points of high emotion. Perhaps this is why your brother started to cry too.