code: private View.OnTouchListener createCancelOnTouchListener() {
          return new View.OnTouchListener() {
  
              @Override
              public boolean onTouch(final View v, final MotionEvent event) {
                  if (cancelable && canceledOnTouchOutside) {
                      cancel();
                      v.performClick();
                      return true;
                  }
  
                  return false;
              }
  
          };
      }
docs: Creates and returns a listener, which allows to cancel the bottom sheet, when the decor view
  is touched.
  
  @return The listener, which has been created, as an instance of the type {@link
  View.OnTouchListener}