If it is a Qt5 app the best way would be if the application would be patched to support the FileOpen event, because that’s what RefsReceived is triggering.
The alternative is to set the QT:QPA_FLAGS attribute for the application to Q_REF_TO_ARGV, the Qt will attempt to convert the initial RefsReceived message into command line arguments.