To have any desire, idea, or plan that is unlikely to be realized; to imagine visionary projects or schemes; to have an idle fancy or a pipe dream; to daydream.
To make something up or invent it as one goes on; to proceed guided only by imagination, intuition, and guesswork rather than by a careful plan.