SELECT * FROM read_csv(choose_file());
file-dialog2.mp4
You can filter files by the extension. For example, in order to show CSV files only, you can specifies this:
choose_file('csv')
file_dialog is available from the Community Extension repository.
INSTALL file_dialog FROM community;
LOAD file_dialog;
make configure
make debug
LOAD './build/debug/extension/file_dialog/file_dialog.duckdb_extension';