Dissipate your way to self-assembly