Your drawing is missing 2 juntionsjunctions. One between the p-type and the wire, and another between the n-type and the wire. The
The voltage drop on these 2 juntionsjunctions will compensate V_depletion and the wire will be no need potential across it.
See FeynamnFeynman section 14-4 for a similar discussion