What a rebel! LOL. When I first got my starter kitty, skye, she did something similar. I had her home set on her bed but her bed was next to the window and her range went slightly through it but not much. I would find her outside sitting on the ground constantly. I finally moved her bed and home and she doesn't go there. Range goes in a circle and if your pet is really close to a window or door they wander or at least mine did LOL

but that's really funny watching a mega jump through a window LOL