// Replaces the location of the current window with the new one.