A Port Glasgow man threatened to smash the windows of his ex-partner’s home before destroying her doorbell camera and making off with her mobile phone, a court has heard.