Here comes libadwaita! Read about our plans to make GNOME apps and GTK 4 even better, and about the future of libhandy: https://adrienplazas.com/blog/2021/03/31/introducing-libadwaita.html
Don't try to somehow mangle around security systems that prevent you from starting a file manager or gedit as root!
Instead just use the "admin://" "protocol"!
E.g. in the file manger (#nautilus) , press Ctrl+L and enter "admin:///root/" to go to the /root dir. You'll need to enter your root password, of course, in a graphical splash screen.
Same goes with editing files with gedit then.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.