How long long was X-plane running before you opened a window? What is your traffic density?
X-plane builds up the traffic again after closing a window, so the first moments you have less traffic than before, resulting in more fps for some time.
How do the fps stabilize after some minutes?
Didn't you change a view angle? Because this can cause a huge fps increase or decrease.