In 2014, Julia Cox moved into a two-bedroom rental with a balcony in Brooklyn Heights. The neighborhood reminded her of her native Philadelphia, she said, “with lower-scale buildings and older architecture.” She thought the apartment — with a rent in the low $4,000s — might feel extravagant for a person living alone, but as it turned out, that wouldn’t be …