For API 30+ using
enableEdgeToEdge()
Solves most of the issues. Regarding system StatusBar and SystemNavigationBar