whole cloth, take (something) out of

make (something) up out of one's imagination. A variation of made out of whole cloth, completely imaginary.