N.Y. VAT. LAW § 1214 : NY Code - Section 1214: Opening and closing vehicle doors

No person shall open the
  door of a motor vehicle on the side available to moving  traffic  unless
  and  until  it  is  reasonably  safe  to  do so, and can be done without
  interfering with the movement of other traffic,  nor  shall  any  person
  leave  a  door open on the side of a vehicle available to moving traffic
  for a period of time longer than necessary to load or unload passengers.