A dog was locked in the car, honked its horn and drew laughter from the outside.