Flatpak apps: how to open file from last opened directory/folder?

This is annoying me since I started using flatpak, but I’ve never investigated.

Any flatpak app I’ve used will open the Recent documents folder when I want to open a file.
IMO it would be better if it opened the last folder opened by the application, as it happens with distro packages.

I know I can right-click on a file in Recent files to visit the file location, but I’d rather avoid this step.

Does anybody know a workaround to do what I want?

Thanks