That type of drywall detail is used for bifold doors on closets where
only a half jamb and trim is installed on the room side of the wall. The
bifold door then fits behind the jamb eliminating the visible side gaps.
It also saves 1/2 the cost of the door trim.