Wait a minute.
Did you... set up the camera on a timer, then run back into your house/apartment?
Or did you just have a cameraman?
Its certainly much funnier to imagine you like, wearing a robe, setting up the camera, dashing back in, posing, haha!
Or maybe that window opens somehow?