This constructor is extremely useful if you want to allow non-local files to be selected and the such. This a file chooser widget and can be embedded in custom windows.
This method must be called statically.