Nintegrate[|w*\pi e^{-iw}(1+e^{iw})^2/(\pi^2-w^2)|, {w, -inf, inf}, PrecisionGoal->7]