fun chooseFile(title: String? = null, filters: Array<out ExtensionFilter>, mode: FileChooserMode = Single, owner: Window? = null, op: FileChooser.() -> Unit = {}): List<File>
Ask the user to select one or more files from a file chooser dialog. The mode will dictate how the dialog works, by allowing single selection, multi selection or save functionality. The file dialog will only allow files that match one of the given ExtensionFilters.
This function blocks until the user has made a selection, and can optionally block a specified owner Window.
If the user cancels, the returnedfile list will be empty.