A. Hubert Hurkacz reached Wimbledon's fourth round but was defeated by Novak Djokovic in four sets.