function FileBrowser(mode, info, doesOpenLast, ...args) {
	return new Promise((resolve, reject) => {
		import(/* webpackChunkName: "fileBrowser" */ "./fileBrowser").then(
			(res) => {
				const FileBrowser = res.default;
				FileBrowser(mode, info, doesOpenLast, ...args)
					.then(resolve)
					.catch(reject);
			},
		);
	});
}
@param {BrowseMode} [mode='file'] Specify file browser mode, value can be 'file', 'folder' or 'both'
@param {string} info A small message to show what's file browser is opened for
@param {boolean} doesOpenLast Should file browser open lastly visited directory?
@param {Array<{name: String, url: String}>} defaultDir Default directory to open.
@returns {Promise<SelectedFile>}