in most cars you can get the wire through that rubber seal on the windows. Then you just have to fiddle around with it till you are able to unlock the car.

Even if that wouldnt have worked i still think breaking the window was not the smartest move.