Thank you for your help Tomas! However I am still struggling with how to make this design. This is my thinking:
If I put the N-MOSFET in line (see simplified schematic), when a connection is detected PTN5150 will set CON_DET to 5V. Then the gate-source voltage will not be enough to turn on the N-MOSFET as output should be 5V and the gate voltage is also 5V. So this won't work. Or maybe I'm wrong somewhere. Can you help me? Do you have a reference design or a sample circuit?

Thanks!