Sofia Vergara has been house hunting for her own “modern family” in New York. One place the sexy television star checked out was a “loft-like” penthouse duplex at 301 E. 52nd St. The five-bedroom, three-bathroom co-op was asking $4.495 million but is now in contract with another buyer. It comes with a 1,400-square-foot set-back terrace. Along with 10-foot ceilings and 50 feet of custom solarium windows, there’s a sunken living room with a woodburning fireplace. The listing broker, CORE’s Jeffrey Smith, declined to comment.