> however that's something that I wouldn't do, so its not really my issue
Electrical code is designed so that even an incompetent operator cannot produce a dangerous situation inside a building's electrical system. OSHA, USCSB, et. al. would be the first to tell you that relying on a specific individual to interlock a dangerous situation can result in extremely adverse outcomes.
That would be against code.
There's nothing stopping you from running bare wire through your walls.
There's nothing stopping you from not bothering to ground any outlets.
There's nothing stopping you from using 14AWG romex on a 50 amp breaker.
Etc., Etc.
All of that is against code, and I've personally seen all of that in the wild at people's homes, offices, etc.
If you wanted to do things the #rightway, you'd most likely need a subpanel for the UPS to feed.
Here there is a breaker, and if the UPS is disconnected, there is no power. Of course someone could go and plug this into a 30a outlet, however that's something that I wouldn't do, so its not really my issue