In a standard Rocky Linux 8.6 (Server with GUI, GNOME desktop) a window asking for the user’s password pops up. After entering the password, the installation is finished. If using sudo, the window does not pop us and the installation is done immediately.
Alternatively the flatpak remote can be installed in this way: