Poland needs to be prepared for the realpolitik of the situation
The 'situation' here does not involve Poland illegally annexing Lviv or any other part of Ukrainaian sovereign territory.
Indeed no government here has suggested it, there is no political or popular will to do so and it would be in direct contravention of international law. Indeed the economic and political sanctions and travel restrictions that would result would be something Poland would not want to see.
Furthermore, as a historic champion of freedom and self determination (mostly...) Poland simply would not get involved in this.