There are collapsible ports that some laptop manufacturers include. Robustness might be a worry but I’m sure Apple would be able to engineer something suitable.
3Com was doing this[1] over 25 years ago stuffing a retractable RJ-45 into a PCMCIA card. The concept is not new. I'm sure if Apple ever did such a thing it would be lauded as pure genius, an invention so incredible we would not be worthy of it.