There was not much in Afghanistan that’s a critical need in Ukraine.
That was a very different war. It was a counterinsurgency fought against guerillas in rough country.
No tanks, no SAMs, few antitank weapons, little artillery.
I suppose Ukraine could use the vast quantities of light vehicles, like the 20,000 Humvees, or the helicopters, or the small arms, but that all is not short in Ukraine.
Considering the record of ME peoples at maintaining equipment I expect that most of the gear is non-operational now.