Two USB ports for one IC
You will need a mux to switch between the two data lanes. You could, for example, use an FSUSB42 with the respective \$V_\mathrm{BUS}\$ for the Sel line. Power switching may be a little trickier, but hard to say without knowing what you have downstream from the USB ports.

Bear in mind, this will cause problems when the user plugs in the "master" USB while the other port is in the middle of a transaction. This sounds like a very bad design choice, and it would be much better to actually have a physical switch to control both the mux Sel line and the power supply.