Send MIDI messages to selected device

Is it possible to create a plugin where you can select the MIDI output device? I want to generate MIDI messages with a plugin and map them to other parameters within the DAW. Since the host is necessary for mapping the MIDI signals, I would like to send the MIDI signal to the IAC device and then use it as input in the DAW.

Or is there another way for Ableton to recognize the sent MIDI data as MIDI input?

Yes, it’s possible. You can base it on the various tutorials for adding MIDI output ports. It’ll work inside a plugin; I’ve done it.