How to import a resource outside of project folder

Godot Version

4.3

Question

How would I be able to import a file outside of the project folder. Having the path from filedialog what’s the best practice to get the resource from the file type and then create a new resource for the file data?