I'm not sure if I can properly articulate the entire process but it's a form of mental relaxation technique. I think "creating pictures" as described
here, more or less covers the gist of it. Book title from where I found the passage is Pulling Your Own Strings.