Dear @Oleksandra,
I did some research for you. If you have already been recognized as a war refugee in another country of the European Union, it is not so easy to come to Germany.
In any case you must first submit an application to your local foreigners authority in Poland. This application is going to be forwarded to the Federal Office for Migration and Refugees (BAMF). If the BAMF declares its approval of the requested transfer of residence, the authorities of the other EU member state ( in your case Poland) will issue a certificate with which you can then apply for the residence permit according to § 24 AufenthG at the German foreigners authority named therein.
I will also link our dear expert @mbeon-Éanna here, maybe he can correct me or add more information to my answer.
I hope my answer helps and please don't hesitate to get back to us with any further questions.
All the best, Julia