Why don’t you use the native open dialog when opening a project?
Follow

Because the IntelliJ platform supports projects that can be folder or file based. This means it can recognise a file (such as my.sln) or a folder as a project. This behaviour isn’t possible with the native OS dialogs, which work in “open file” or “select folder” modes exclusively. Rider currently requires a .sln file to open a solution.