Quiver varieties, character varieties and DT-invariants