I know it's too late but i want to give alternative to "FLAG_BLUR_BEHIND"
see this: Android 12 Window Blurs
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
val window: Window = this.window
window.setBackgroundBlurRadius(20) // Set blur radius
}