code: private void saveDraggableState(Bundle outState) {
      DraggableState draggableState = null;
      if (draggablePanel.isMaximized()) {
        draggableState = DraggableState.MAXIMIZED;
      } else if (draggablePanel.isMinimized()) {
        draggableState = DraggableState.MINIMIZED;
      } else if (draggablePanel.isClosedAtLeft()) {
        draggableState = DraggableState.CLOSED_AT_LEFT;
      } else if (draggablePanel.isClosedAtRight()) {
        draggableState = DraggableState.CLOSED_AT_RIGHT;
      }
      outState.putSerializable(DRAGGABLE_PANEL_STATE, draggableState);
    }
docs: Keep a reference of the last DraggablePanelState.
  
  @param outState Bundle used to store the DraggablePanelState.