code: public function createDraft(array $data = null, $persist = false)
      {
          $data['isDraft'] = true;
  
          return $this->create($data, $persist);
      }
docs: Creates an entity in draft mode.
  
  @param array $data
  @param bool  $persist
  
  @return EntityInterface