You're somewhat misremembering a real thing. It's possible to profit by donating a piece of art to a museum and claiming its value to be much greater than what you'd get on the open market. This is tax fraud, though, and the IRS will probably notice.