Mac Pro cd drive stuck open
It's likely the case will have to be replaced. I've fixed this before by lightly tapping on the area below the gate, but it's a recurring thing.

You can also slide the optical drive housing out and take a look at the mechanism that raises and lowers the gate. Try manually pulling it up and down a few times.