The inverse would probably be easier. Have a medium sized German state have a little bit of coastline in the North / Baltic Sea then establish an overseas colony about the size of OTL Spanish colonies in Africa *minus rio de oro*. Then have that country lose a war on mainland Europe but be allied with Britain / Super Naval Hegemon X so its colonies aren't threatened. It loses access to the coast in Europe and becomes an inland country but has a colony overseas meaning it is dependent on extra-territorial concessions and other countries.
I remember there was a thread on here a while ago about a proposal to grant German Togoland to Czechoslovakia as a League of Nations mandate, actually.