https://github.com/WebMaka/CageMakerPRCG looks like a very cool utility for OpenSCAD that will take in any device dimensions (like a random switch or mini PC), and output a rack cage you can 3D print for it.
From the README:
It's a tool designed by @WebMaka and he has a Patreon if you want to show support for free tools like this.