I accidentally left something behind in the room.

Literal

Room [in-に] forgotten-item [object-を] did [unfortunately-てしまいました].

忘れ物をする is the standard expression for leaving something behind. The ~てしまう adds regret for the unintentional forgetting.