DETROIT—This shrinking city needs to hang on to people like Johnette Barham: taxpaying, middle-class professionals who invest in local real estate, work and play downtown, and make their home here.

Ms. Barham just left. And she's not coming back.

In seven years as a homeowner in Detroit, she endured more than 10 burglaries and break-ins at...