Both NEMA MG-1 and the NEC permit purging motor enclosures. See Section 501.125(A)(2) for a Class I, Division1 example. Section 501.125(B)(2) refers back to Division 1 for some Division 2 applications, if appropriate. Usually Division 1 identified motors are not required in Division 2; however, NEMA MG-1 does require the motor manufacturer’s input where their motor is used with a ASD (VFD) in a classified location.
However, I believe the OP was asking about the ASD (VFD) enclosure. It too may use a Type Z purge, assuming it is a Division 2 application.