During the pendency of such suit or proceeding any person claiming to be interested in the premises may appear and answer the complaint and assert his right by way of intervention, whether such interest be derived or claimed under the common source of title or otherwise, and the court shall decide upon their [his] rights as though they [he] had been made parties [a party] in the first instance.
NMS § 42-5-4