Inspired by the 15th-century Italian studiolo—a room within a room—architect Eduardo Mediero used walls of MDF cabinetry to partition the 500-square-foot apartment he shares with his partner in a 1970s building in Madrid.