What is indulging in a vagrant or idle exercise of the imagination; roaming upon a fruitless quest; idly fanciful called?

woolgathering — Indulging in a vagrant or idle exercise of the imagination; roaming upon a fruitless quest; idly fanciful. (Webster's 1913.)

Sources