focus any focusable fields when opening a dialog

@ussuri, fixes #2206. This manually focuses a `[focused]` field in a dialog when the dialog is opened. Fixes the focused issue for the new file dialog, new folder, project, ...