A question about midi lane accessibility from a plugin

In Reason you get to ‘Export To track’. I can understand a generic plugin can’t do that, it owuld need the DAW as a context and for that context to have a generic ’Here is my midi lane data’ API. But is it possible for a VSTi to receive a handle to a midi track? Or preferably a single midi event?

So the workflow would be, I would be in a Daw, use pen tool to draw out a midi event region (I don’t know the technical name), then somehow I can click on it, and drag it into a space on my VSTi that expect such a thing fo rhappen, then implement drag drop funcitonality to accept the midi event region as a handle?

The reason I want this is I want to be able to edit midi data from within my VSTi.

I can imagine the answer is absolutely not but maybe it’s possible.

I can image some DAWs might use the operating system’s drag-and-drop API when dropping MIDI clips into other windows. Your plugin could the receive it (probably as a MIDI file) via juce::DragAndDropTarget.

Though I tested it in Reaper, Ableton Live and FL Studio on Windows and none of them does this.