Because it's only 28" deep, I would shy away from the desk option. The chair will be sticking out in the room.
If you really need a desk & If you have room to hide a fold up chair, it's possible. 36" minimum for sitting area. Much easier to get in & out of. I prefer much more open area to get in & out of in my swivel desk chair. Chairs on wheels suggested to slide in to avoid the chair hop in effect.
.......
Closet desk area are great for deeper closets so the back of the office chair can be hidden in the closet when pushed in under countertop.
Of course, people can get a chair with no back/ stool, but that can get uncomfortable after sitting awhile.
Q