Could a giant magnifying glass ever be constructed in space?

Could some type of electronic magnifying glass ever be constructed and deployed into space for Military purposes? Could such a thing ever could work?

Small magnifying glasses are capable of killing ants, would a giant one in space be capable of destroying bigger things?

If such a device is constructed I assume it would be a WMD (Weapon of mass destruction) used for Militar purposes only.

Would such a thing work, what are your thoughts?