Here’s details of how to pass Dorico’s output to Logic, using MacOS.
If you’re on Windows, you might need some third-party virtual MIDI routing software of some kind.