I'm not sure if it would work, BUT maybe with a thunderbolt to thunderbolt cord? I'm not sure how you could tell the old computer to just let itself be used as a monitor though. You probably would need some sort of software for this, which may or may not exist.