5. (D).
Let s=ω+2ω2+3ω3+⋯+9ω9, where ω=ei92π.
ωs=ω2+2ω3+3ω4+⋯+9ω10,s(1−ω)=ω+ω2+ω3+⋯+ω9−9ω10.∵ω=1,∴s(1−ω)=ω−1ω0−ω−9ω10.
Notice that ω9=(ei92π)9=ei2π=1.ω10=ω,
∴s(1−ω)=−9ω,
Thus 21=9ωω−1,∣s∣1=9∣ω∣∣ω−⋯∣=9∣ω−1∣.
Since ω is a vertex of a regular nonagon inscribed in the unit circle, ω−1 is the side length of the regular nonagon inscribed in the unit circle. Therefore, ∣ω−1∣=2sin9π, which means 9∣ω−1∣=92sin20∘.