code: private static MenuDrawer createMenuDrawer(Activity activity, int dragMode, Position position, Type type) {
          MenuDrawer drawer;
  
          if (type == Type.STATIC) {
              drawer = new StaticDrawer(activity);
  
          } else if (type == Type.OVERLAY) {
              drawer = new OverlayDrawer(activity, dragMode);
              if (position == Position.LEFT || position == Position.START) {
                  drawer.setupUpIndicator(activity);
              }
  
          } else {
              drawer = new SlidingDrawer(activity, dragMode);
              if (position == Position.LEFT || position == Position.START) {
                  drawer.setupUpIndicator(activity);
              }
          }
  
          drawer.mDragMode = dragMode;
          drawer.setPosition(position);
  
          return drawer;
      }
docs: Constructs the appropriate MenuDrawer based on the position.