Ctools: stay always within modal window
You may can use this module
Overlay Paths

This is a simple module that enables administrators to use the built-in Overlay for non-admin pages.

This means that you can use the overlay for doing popups without adding yet more javascript libraries to your site.

This module is designed to be used by module developers comfortable with writing code to define which pages should appear in the overlay.