Midi device creation

Hello
I want to ask how can I create a midi device by JUCE?
I know mac can create a new midi device.
How can I write to this midi device?

MidiInput::createNewDevice() and MidiOutput::createNewDevice()?