Drag and drop + FileList + Flatpak sandbox

I know it’s possible to implement drag-and-dropping files in GTK4 using a FileList. It works well but not in Flatpak. Unless I give the application full filesystem permissions, the application may fail to access the file path.

It appears to be a solved problem, so perhaps I just need to implement it correctly. Is there a correct way to do it?