Hold the power button until the phone turns off. Wait a few seconds. Then, turn it on, with the USB connected. Wait until the charging symbol appears. Then, turn on the phone.

Now, the Nexus 4 is showing in `My computer` again.