Installing it via "flatpak install foliate" didn't work? Downloading the .flatpakref seems like an unnecessary step to me but I'm on a different distro (openSUSE Tumbleweed).
edit: I can also open files from anywhere on my PC. Could it be that the flatpak on Debian Stretch is not correctly configured?