Before the building that houses the Boros Collection began its transformation in 2004, it had served as a Russian-run prison, a fruit-storage facility in the former East Germany, and a hall for techno music raves.