What if target DNA doesn’t have restriction sites
If you're synthesizing the insert then you just design it with restriction sites that are compatible to the vector. Otherwise, you can design PCR primers that have restriction sites in them. That way when you amplify your insert you'll attach the restriction sites to it. EMBL, Addgene, and NEB all offer somewhat more detailed explanations of this on their sites.