Dissipative self-gravitating systems in modified gravity