In WA an end user can build a control panel as long as all the parts are UL listed and it’s inspected. Not all control components are UL listed, many are backwards UR component recognized and can only be used by a panel shop usder UL 508A. There are exceptions for industrial locations
But if you build your own get an enclosure with a back panel. I was using Saginaw as their enclosures were better than Hoffman, less expensive and better availability.