Whether a panel listed for surface mount can be installed as a recessed panel not sure of listing limitations but the 2023 NEC states:
"312.2 Damp or Wet Locations.
In damp or wet locations, surface-type enclosures within the scope of this article shall be placed or equipped so as to prevent moisture or water from entering and accumulating within the cabinet or cutout box, and shall be mounted so there is at least 6-mm (1⁄4-in.) airspace between the enclosure and the wall or other supporting surface. Enclosures installed in wet locations shall be weatherproof. For enclosures in wet locations, raceways or cables entering above the level of uninsulated live parts shall use fittings listed for wet locations."
If panel is recessed it is no longer surface mount and section doesn't apply, But OP stated: