A man who thought he was pointing a laser at a drone was instead pointing the beam at a police helicopter a “significant distance” away, a court has heard.