DefaultLegacyOpener: factor out OpenFile

Instead of always using the OpenFile command, we will use a focused
GetPath command only if given a null path. Then we will use the
IOService directly.

This prevents unwanted dialogs to pop up, for example, if no format is
found.