I am not quite sure how exactly you built the logic that you currently use, but generally speaking if you want the window to be explicitly pinned when you show it, you can set its InitialBehaviors to Pin.
RadWindow1.InitialBehaviors = WindowBehaviors.Pin;
I hope this helps. If you still experience problems, please open a support ticket and send me a sample project that I can examine more closely.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items