Novak Djokovic made a winning return in his first Miami Open appearance since 2019.