I am looking for the solution where I can allow the user to restore the window from taskbar but it should not be activated.
I've tried to override OnActivated and stop calling the base.OnActivated() in Window class but so far it is not working.
protected override void OnActivated(EventArgs e)
{
if (DisableActivation)
return;
base.OnActivated(e);
}