As a couple others on the toddler board said, switching her isn't going to do anything except make her afraid of you (and afraid of windows)...
It may be that for this time period (until this gets out of her system), you just can't let her roam around the house free, you've got to keep her with you - and if you can't put or keep locks on all the windows, then put locks on at least one toddlerproofed/windowproofed room with a gate on the door, so if you have to run to the bathroom, or stick lunch in the oven, or shower, or whatever, there's a safe space for her and a worry-free space for you.
There are certain things I just know I cannot trust DS with, so I don't even let him get in the situation. For example, many mamas here let their children in the bathroom with them while they shower...my DS is way too active and explorative for that, it's just too dangerous for him and would make my nerves shot worrying about what he was getting into in the 5 minutes I "relax" while I shower every day....so I completely toddler proofed his room, furniture is attached to walls, no window blinds, windows locked, bumper on closet door, gate on the room door, so that he can be in there playing with toys and I don't have to worry about him. It's my "go to" spot if I need to be somewhere he can't be, and he's totally happy playing in there for a bit.
You need to make this a non issue by babyproofing and not giving her the opportunity to access the windows (block them, lock them, whatever), because at 15 months, she is an exploring machine with zero impulse control (unless you "switch" her; but stopping with that wouldn't be impulse control, it would be stopping because she was afraid of getting hit
You CAN do this without hitting her, it just requires more effort and creativity on your part...anyone who thinks GD is the "easy" way to parent has NO IDEA.
ETA: Wow, I can't believe I forgot to give you
;it must have been terrifying!