Yes. Two parties come together and say that they agree on the actual geographic location, on the rule of law, on how they're going to respect each other, and on many other things that would come into play in that agreement.
Wouldn't that be a better basis to achieve statehood than trying to just declare it and then trying to find out a way to get to that position somewhere later?