A way is using the \marginnote conmand in marginnote package (that enhances the marginpar command of LaTeX). TikZ is also can be used for customizing.
From a Willie's comment in this topic: Note that \reversemarginpar is a command that, when issued, forces all \marginpars created after to be put on the opposite side of normal (that is, on the left instead of right for single sided documents, and on the inside edge as opposed to the outside edge for double sided documents)

%https://www.overleaf.com/learn/latex/Margin_notes
% https://tex.stackexchange.com/questions/491013/how-do-i-toggle-the-normal-reverse-marginpar
\documentclass[]{article}
\usepackage{lipsum,tikz}
\usepackage{marginnote}
\begin{document}
\noindent{\bfseries Problem 1.}
\reversemarginpar
\marginnote{\color{red}1 point}
\lipsum[1]
\vspace*{1cm}
\noindent{\bfseries Problem 2.}
%\reversemarginpar
\marginnote{\tikz\node[fill=yellow]{1.5 point};}
\lipsum[2]
\vspace*{1cm}
\normalmarginpar\marginnote{\tikz\path (0,-2) node[below,blue,text width=2.5cm]{Back to the right of the paragraph};}
\lipsum[3]
\end{document}
exsheetsorxsimcan probaly do this. Without more information, the question is a bit broad. – Johannes_B May 03 '18 at 05:01tikz,esopiccan always do something like that. – Johannes_B May 03 '18 at 05:13\reversemarginpar\marginpar{\hspace{1cm}1pt}do exactly what I want
– Matheod May 03 '18 at 05:16