Mapping repulsive to attractive interaction in driven–dissipative quantum systems