Found the solution:
I am using a second monitor on my MacBook. When I disconnect the monitor, the panels get scattered out of the monitor space and don't return after I reconnect.
Go to Mac system preferences -> monitors -> arrange and there you'll find a check bos "synchronize monitors". That brings back all panels in the monitor space.
Good Luck!