As a general rule, a child should never be left alone in a car, much less with the doors and windows closed.
It is a matter of logic and safety. Parents are responsible for the safety and well-being of their child at all times, and if you are not there, anything could happen, and you could not do anything about it.