If I were Ukraine, the only way I'd accept a treaty with Russia - allowing them to continue to occupy their current gains - would be if it also allowed Ukraine to join NATO.
Otherwise, as jolihokistix notes, they'll be in the same situation within a decade when Russia is ready to take another bite. Making peace with the Russia is akin to making peace with Hitler - it's only valid until Russia decides otherwise.