A pocket on pyjamas
The patch pocket page is the stitch. Place the pocket where a hand rests when you are standing, then sit down and check it has not moved to the hip bone. Interface the opening if the flannel is soft. A pocket bag in the side seam is the in-seam page and adds bulk in a bed. For sleep, a patch is the simpler choice.
The pyjama trousers page is the legs.
Match the grain or the pocket twists after a wash.