The Windermere apartment building — the eyesore on Ninth Avenue and West 57th Street — has moved a step closer to becoming a hotel coupled with low-income housing.

The city inked an agreement with New Jersey-based owner Moshe Tress and the Metropolitan Council on Jewish Poverty, which would operate 20 low-income units for seniors.

Apartment rents would be $939 a month for the 10 studios; $1,187 for the six one-bedrooms; and $1,433 for the four two-bedrooms.

To develop the hotel, Tress wants to add two stories, create a rooftop event space, build an interior courtyard to meet city light and air requirements for the two-bedroom apartments and install a handicap lift to cellar storage and laundry areas. He needs approval from the City Planning Commission, Landmarks Preservation Commission and Building Dept.

In the 1980s, the previous owners wanted to demolish the building. But because 25 feet of it were in a special preservation district, the city would not allow the demolition. The building was subject to various court orders and fines before it was vacated for safety reasons.

Tress bought it in 2009 for $13 million from Japan-based owners who also envisioned tearing it down.