If you intend to break the window, inform the police first and get a witness/photograph.
Many people still believe that it’s ok to leave a dog in a car on a warm day if the windows are left open or they’re parked in the shade, but the truth is, it’s still a very dangerous situation for the dog.