It refers to wishful thinking or unrealistic aspirations. This is used to describe someone who cherish foolish and exaggerated ideas.
Example:
John has neither experience nor qualification, yet he wants to be the director of the team? This is such a toad wishing to eat swan meat!