I was just fooling around in portal and I found this...
If you want to do it yourself, just place a portal in the doorway while the door is open, then go through it with the cube. Then shove the cube into the top half of the portal, and it will disappear for some reason. It works in all versions of portal.
No idea why or how this works.