With MuseScore you can set the midiOut to LoopMidi in Reaper you load Kontakt in a track and in Preferences > Midi Devices > midiIn enable LoopMidi then set the track midiIn to LoopMidi, in Reaper Preferences > Audio uncheck Close audio device. You can also use Kontakt Standalone set to LoopMidi IN.