It means having a daydream or an ambition. We defined daydream as a pleasant visionary usually wishful creation of the imagination. While, ambition is an earnest desire for some type of achievement or distinction, as power, honor, fame, or wealth, and the willingness to strive for its attainment.
Examples:
I hope this is helpful. Good luck and carry on learning!