Summary
The magic that controls the Room of Requirement, imbued into a sword, has been given to Ginny Weasley in order to help her. The problem is that if the Room of Requirement decides to help you on its own, you might have been better off not getting its help.