code: private void adaptWindowBackgroundAndInset() {
          DialogRootView rootView = getRootView();
  
          if (rootView != null) {
              rootView.setWindowBackgroundAndInset(windowBackground, windowInsets);
          }
      }
docs: Adapts the background and inset of the dialog's window.