Oh, wow. I don't think it was your fault that the window got stuck open. It seems that something is wrong.. perhaps the glass has fallen off the rail, or the window regulator gave out. I, personally, don't mess with the windows. Last time I had a similar probem, I just took my car to a shop to be fixed
Wait and see if anyone else here that knows more than me posts some other replies.
Good luck.