Not only is he a doctor, (but) he is also a millionaire.
Not only did he eat an apple, (but) he also ate an orange.
Prepositional Phrases of Place (Necessary)
On the table is a book.
On the table (there) is a book.
The prepositional phrase is necessary here, because without it, the sentence would be incomplete: (…is a book…is not a complete sentence.) Inversion is necessary.
At the restaurant, the food was too spicy.
(inversion is not necessary)
Without the prepositional phrase, the sentence … the food was too spicy …is still complete.
This structure is typically used with linking verbs (be, appear, seem, etc.) or words that function as linking verbs.