You are not at all addressing the point I made, that the military campaign against the Taliban was a swift and successful action. You stated that the Taliban beat the worlds most advanced military, which they didn't.
That the subsequent occupation ended with the Talibans return to power has nothing to do with the war itself but has political reasons.
In my opinion, the occupation could have ended completely different with a longer commitment. Unfortunately, the Iraq invasion happened and the American population had little long term interest in nation building, two nations at once.
FWIW Iraq and Afghanistan are very different places.
But this has nothing to do with the military campaign itself. When I was there and where I was(2010, northern Afghanistan), it was a fairly peaceful place. Things were progressing in the right direction.
Regarding your second question, I don't think that the Taliban would have great use of drones considering that we could use essentially the same counter measures we used against remotely operated IEDs(jamming).
Ukraine does not have access to the same equipment we did in Afghanistan.
EDIT:
This article pretty much reflects my views on what went wrong. The US government half assed the occupation and withdrew too early.
https://www.rollingstone.com/politics/politics-news/the-runa...