Sorry for bothering you all again with silly questions about dimensions.
For the measurements in red I had to draw a line, take the measurement and then delete the line.
is it normal or there is a simpler way?
If you’re going to place those dimensions where you did, you need some sort of intersections or other points to anchor the dimensions to. A crossing guideline is a good way.
You don’t need any extra (hidden) line.
Both edges do have two endpoints that can serve as anchor points for desired dimension.
They also have one midpoint each. So that also will do.
Create the dimension in the top plane of your object. Then rotate the dimension 90 degrees to stand up.
You can either temporarily change the drawing axes (vertical/along the edges) or constrain rotation to the slanted side face. The dimension rotates about a virtual line perpendicular to that face and through its anchor point (the first clicked point with the dimension tool). A nice one identical to the one you showed is by using both midpoints.
The dimension will be associated to the geometry to follow changes.