In a small bowl, mix mayonnaise, ketchup, Dijon mustard, garlic powder, onion powder, Worcestershire sauce, and paprika to make the secret sauce.
Shape ground beef into two large patties, seasoning with salt and pepper.
Heat a skillet over medium heat and cook the patties for 3-4 minutes per side, or until fully cooked. Remove and set aside.
In the same skillet, add 1 tbsp butter and cook onions until caramelized, about 10 minutes.
Butter one side of each slice of rye bread. Spread secret sauce on the unbuttered sides.
Assemble sandwiches by layering Swiss cheese, a beef patty, caramelized onions, and cheddar cheese between two slices of bread.
Cook sandwiches in the skillet over medium-low heat until the bread is golden brown and cheese is melted, about 3-4 minutes per side.
Serve immediately with extra secret sauce on the side.