i don’t think that Gates actually visited but engineers from MS did visit Xerox Parc around the same time as Apple.
I’m speaking strictly about what was depicted in the film.