N.Y. Comp. Codes R. & Regs. tit. 20, § 132.5
(a) Items of income, gain, loss and deduction attributable to intangible personal property of a nonresident individual, including annuities, dividends, interest, and gains and losses from the disposition of intangible personal property, do not constitute items of income, gain, loss and deduction derived from or connected with New York State sources, except to the extent attributable to property employed in a business, trade, profession or occupation carried on in New York State. (See also section 3 of article XVI of the New York State Constitution.)
Example:
A, a resident of New Jersey, owns 100 percent of the stock of X Corporation, which operates a store in New York State. In 1980, the corporation pays A a salary of $20,000, all of which was earned in New York State, and a dividend of $2,000. A's income from New York State sources is his salary of $20,000, since the dividend is not income derived from New York State sources and thus not taxable for New York State personal income tax purposes.
Tax Law, § 632(b)(2)