Bypass flawed portal implementation on flathub?

There is a bunch of bugs in xdg-desktop-portal resulting in file descriptors being left open. In my case this makes the Open URI portal unusable. Those bugs are still open let alone backported to any distribution.

Would I be allowed to use org.freedesktop.Flatpak.Development.HostCommand() for bypassing the OpenURI portal via calling xdg-open on the host for a flatpak hosted on flathub?

Worked around it by using the org.freedesktop.FileManager1 DBUS API.