The prostatic part of the urethra develops from the pelvic (middle) part of the urogenital sinus (endodermal origin).