Keeping the door closed prevents contact with the breaker switches and the energized parts behind the dead front. The door is also a containment mechanism for electrical events, particularly an arc flash or short circuit. Electrical panel doors have to be locked in commercial buildings as per OSHA. As for residential establishments, it doesn't necessarily need that the doors be closed. Skip the grounding, and you're gambling with safety. The code states that only trained personnel may access any distribution board.