A luxury waterfront mixed-use development in Brooklyn, New York, has landed $520 million in financing for a two-tower, 21-story project that’s already under construction. The transaction is the latest example of investors betting on the Gowanus area that’s undergoing a major transformation.