Feature request, MIDI port connections

I know that Windows and ALSA provide such functionality, don’t know about MAC, you connect two ends of hardware in/out and i guess the OS does the work. Would it be possible to add this to MidiOutput and MidiInput classes ?