I've done it as a mater of routine .... but some folks have run into issues with their AHJ - who wants a hinged door.
IMO, there's no code issue, and trying to apply 'listing and labeling' is quite a stretch. Heck, I've even had folks object to cutting holes in the boxes, rather than using the factory KO's. Go figure.