NSW Police are investigating a critical incident after a man died in hospital after striking a glass window during an arrest.