An action may be maintained in the courts of this state to recover damages for injuries to real estate without the state, or for breach of contracts or of covenants relating thereto, whenever such an action could be maintained in relation to personal property without the state. The action must be tried in the county in which the parties or some one thereof resides, or if no party resides within the state, in any county.
N.Y. Real Prop. Acts. Law § 121