A jocular or euphemistic instruction, historically given to someone (traditionally a woman) to endure an unpleasant or compromising physical act by imagining something proper or respectable.
2.
British EnglishGlobalinformalhumorous
To distract oneself from discomfort or embarrassment by thinking of something remote, dignified, or unrelated; to bear an unpleasant situation by mentally focusing elsewhere.