That’s a great idea. Personally I’d like it to be self-contained and I’ve been using an OctoPrint plugin called PortLister which automatically refreshes the available serial ports when a new device is detected (and if you have auto connect enabled, it will do that). If your printer’s USB to serial chip is not powered by the USB port (no serial port shows up until you turn on the mains power) you can also try that.