Example using FileDialog working around widget creation bug