Questions & Answers about Det at hun ikke kjente noen i byen, gjorde henne ensom.
Putting det in front of at packages the whole clause at hun ikke kjente noen i byen into a noun-like unit, much like English "the fact that...".
You can also start the sentence with just At (At hun ikke kjente noen i byen, gjorde henne ensom), which means the same thing. Using Det at is very common in both spoken and written Norwegian because it points more clearly to the situation as a concrete fact or reason for what follows.
In English, you don't normally put a comma between a long subject and its verb. In Norwegian punctuation, however, a subordinate clause (here at hun ikke kjente noen i byen) that comes before the main verb is always followed by a comma where it ends.
Notice too how the entire Det at hun ikke kjente noen i byen counts as a single block in the first position of the sentence, so the main verb gjorde comes immediately after the comma in the second position.