I think I laid it out pretty succinctly in Can one drag and drop MIDI from a JUCE plug-in to the DAW timeline?
Rail