Preheat oven to 350 degrees F (175 degrees C). Grease an 8x8-inch square baking dish.
Cut eggplant in half lengthwise and scoop out the flesh, leaving shells about 1/4 inch thick. Chop pulp and place into a colander. Sprinkle with salt and let eggplant pulp drip for 30 minutes. Blot moisture from eggplant pulp with a paper towel.
Melt butter in a skillet over medium heat; cook and stir eggplant pulp and onion in the hot butter until vegetables are tender, about 10 minutes. Stir bread crumbs, mushrooms, Italian seasoning, and black pepper into the eggplant mixture until thoroughly combined. Spoon the mixture into eggplant shells.
Bake in the preheated oven until eggplant shells are tender, about 15 minutes. Sprinkle with Swiss cheese, return to oven, and bake until cheese has melted, about 5 more minutes.