Opening recent files from Dock with MacCatalyst app

We are developing an MacOS app from our iOS app using MacCatalyst.

If I press long on the app icon on the Dock, a list of recent files appears. If I tap one one of these files nothing happens. I would expect the scene delegate function:

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) 

would be called but it is not. Can somebody maybe explain what I am missing here?

The list of recent files also appears in the Menu under File > Open recent files. There I can tap on a file and it it is opened correctly using the scene delegate method mentioned above.

The files can also be opened with the app using the Finder, so the associated file types with the app are correct.

Opening recent files from Dock with MacCatalyst app
 
 
Q