Detecting particle dark matter signatures via cross-correlation of gamma-ray anisotropies and cosmic shear