Nikon’s AF-P lenses, including the 10-20, are only compatible with newer Nikon DSLR cameras (eg D500, D7500, D3400 etc). They are not compatible with the D90. As to using the 10-20 for real estate photography, it would be a good choice for daylight outdoors probably not as good for indoors because of the 4.5-5.6 maximum aperture.