Ivan Perisic scored a dramatic stoppage-time equaliser as Inter salvaged a 2-2 derby draw against AC Milan in Stefano Pioli's first match in charge of the Nerazzurri.