I've done that before, imagining my T being present to soothe myself. Thinking of her presence sometimes helps when I'm struggling to sleep. I've also imagined more embarrassing things for my own comfort. But my T was nonjudgemental when I opened up about it. She simply asked if imagining her was helping me.