You have to decide if yours is or is not under warranty before you proceed. Accidentally bumping the extended drive tray or resting a heavy weight against the drive tray may throw the tray off track, rendering it impossible to shut the drive.
http://www.pcguide.com/vb/showthread.php?t=11670 is a typical discussion where they need to get the door back on track.
Remember this is an area that those who can, will and those that are under warranty shouldn't.
Bob
Can anyone offer up a simple resolution that I can try so I don't have to send the console in? The tray on my XBOX 360 won't close. It will close but immediately open and will not stay closed. Thanks in advance for your help!
Spence

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic