How to open with the SDK a document for which we have the URN?

If you ask Windows to follow the link, it points to the document without opening it.

The software continues to run without waiting for the user to respond.

Temporarily stopping the execution is not a good solution.