Nick Kyrgios and Novak Djokovic won their first match after a nail-biting tiebreak, while Jordan Thompson came from behind to defeat Matteo Berrettini.