That's a poor definition which you won't find repeated in any other reference (really, take a look). The entirety of the meaning of the idiom concerns the misperception of ones opponents.
That's incorrect. A number of other sources say that it also means exactly what I mean: "to pursue an unrealistic, impractical, or impossible goal". E.g.:
https://en.wikipedia.org/wiki/Tilting_at_windmills