title: Interact with fragment behind BottomSheetDialogFragment
body: <p>With the following code inside a <code>DialogFragment</code> I'm able to create a dialog and I'm still able to interact with the views in the <code>Fragment</code> behind the dialog.</p>
  <pre><code>override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
      val dialog = super.onCreateDialog(savedInstanceState)
  
      dialog.window?.let {
          val statusBar: Int = WindowInsetsCompat.Type.statusBars()
          WindowInsetsControllerCompat(it, it.decorView).hide(statusBar)
  
          it.addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL)
          it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
  
          it.setLayout(MATCH_PARENT, WRAP_CONTENT)
  
          it.setBackgroundDrawable(null)
          it.setGravity(Gravity.BOTTOM)
      }
  
      return dialog
  }
  </code></pre>
  <p>This works great and in combination with <code>layout_behavior=&quot;@string/bottom_sheet_behavior&quot;</code> I'm able to create a dialog which almost acts like a normal <code>BottomSheetDialog</code>. Unfortunately it turns out that the code from above doesn't work in a <code>BottomSheetDialogFragment</code>. When trying it I'm no longer able to interact with views behind the dialog. Do you have any ideas why and how to fix it?</p>
  <p>Why do I bother with that? I want to capsulate my logic in the dialog, which displays a custom view, from the fragment it interacts with. That's why I don't want to use a &quot;normal&quot; view inside my fragment with the layout behavior set. It is rather much code which I want to keep seperate without writing listener etc. Communication between the dialog and the fragment works great when using a <code>ViewModel</code> which is bound to the nav graph.</p>