Actually, in our example once the dock is closed it is never recreated because of
if (CurrentDockStates[i].Closed == false) check we make in Init() so it is not on your page.
If all that matters for you is to have the docks always be recreated with the same IDs then you can save/load state including their ID from a database as shown in this thread
Please, provide more specific information about your scenario so we can be more concrete in how to achieve it.
the Telerik team